package com.cyq.test0618.booksystem;

public class Book {
    private int bookNum;
    private String bookName;
    private int bookPrice;
    private int bookLeft;

    public Book() {
    }

    public Book(int bookNum, String bookName, int bookPrice, int bookLeft) {
        this.bookNum = bookNum;
        this.bookName = bookName;
        this.bookPrice = bookPrice;
        this.bookLeft = bookLeft;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public int getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(int bookPrice) {
        this.bookPrice = bookPrice;
    }

    public int getBookLeft() {
        return bookLeft;
    }

    public void setBookLeft(int bookLeft) {
        this.bookLeft = bookLeft;
    }

    @Override
    public String toString() {
        return "Book{" +
                "图书编号=" + bookNum +
                ", 图书名称='" + bookName + '\'' +
                ", 图书单价=" + bookPrice +
                ", 库存数量=" + bookLeft +
                '}';
    }
}
